package com.deyang.adapter;

import android.app.Activity;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.deyang.entity.OrganizationModel;
import com.deyang.maillist.R;
import com.deyang.util.ImageUtil;

import java.util.List;


/**
 * @author wangdyang
 * @createDate 2018年7月21日19:37:34
 * @desc 我的消息列表
 */
public class OrganizationAdapter extends BaseQuickAdapter<OrganizationModel, BaseViewHolder> {

    public OrganizationAdapter(Activity activity, @Nullable List<OrganizationModel> data) {
        super(R.layout.item_organization, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, OrganizationModel item) {
        helper.setText(R.id.tv_name, item.getName() + "(" + item.getNumber() + ")");
//        helper.setText(R.id.tv_number, item.getNumber() + "位成员");
    }
}
